package payroll.webapp

class EmployeeSalaryClaims implements Serializable{
	
	Integer empSalClaimID
	String empSalEmpID
	Integer salClaim_month
	Integer salClaim_year
	ClaimTypes claimTypeID
	ClaimGroups claimGroupID
	Double claimAmount
	String salClaimRemarks
	Integer salClaim_invoice_month
	Integer salClaim_invoice_year
	Boolean isEmpClaimReimbursed
	Boolean isInvoicedToCustomer
	String customerCostCenter
	Date dateCreated
	Date lastModified
	String createdBy
	String lastModifiedBy
	
    static constraints = {
	 	
		empSalClaimID(nullable:false, unique:true)
		empSalEmpID(nullable:false, unique:true)
		salClaim_month(nullable:false, unique:true)
		salClaim_year(nullable:false, unique:true)
		claimTypeID(nullable:false, unique:true)
		claimGroupID(nullable:true)
		claimAmount(nullable:false)
		salClaimRemarks(nullable:true)
		salClaim_invoice_month(nullable:true)
		salClaim_invoice_year(nullable:true)
		isEmpClaimReimbursed(nullable:true)
		isInvoicedToCustomer(nullable:true)
		customerCostCenter(nullable:true)
		dateCreated(nullable:true)
		lastModified(nullable:true)
		createdBy(nullable:true)
		lastModifiedBy(nullable:true)
    }

	static mapping = {
		table "Emp_Sal_Claims"
		empSalClaimID generator:'hilo', params:[table:'hi_value',column:'next_value',max_lo:100]
		id composite : ['empSalClaimID','empSalEmpID','salClaim_month','salClaim_year','claimTypeID','claimGroupID']
	}
}
